<!--
 * @Descripttion: 
 * @version: 
 * @Author: 尹伊
 * @Date: 2020-07-09 17:36:49
 * @LastEditors: 尹伊
 * @LastEditTime: 2020-07-13 09:32:20
-->
<template>
  <div style="margin: 50px;">
    <Transfer v-model="value" :data="data"></Transfer>
  </div>
</template>
<script>
  import Transfer from './transfer'
  export default {
    name: '',
    head() {
      return {
        title: '穿梭框+树'
      }
    },
    components: {
      Transfer
    },
    data() {
      return {
        // data: [],
        value: [],
        data: [{
          label: '一级 1',
          key: 1,
          children: [{
            label: '二级 1-1',
            key: 2,
            children: [{
              label: '三级 1-1-1',
              key: 3,
            }]
          }]
        }, {
          label: '一级 2',
          key: 4,
          children: [{
            label: '二级 2-1',
            key: 5,
            children: [{
              label: '三级 2-1-1',
              key: 6,
            }]
          }, {
            label: '二级 2-2',
            key: 7,
            children: [{
              label: '三级 2-2-1',
              key: 8,
            }]
          }]
        }, {
          label: '一级 3',
          key: 9,
          children: [{
            label: '二级 3-1',
            key: 10,
            children: [{
              label: '三级 3-1-1',
              key: 11,
            }]
          }, {
            label: '二级 3-2',
            key: 12,
            children: [{
              label: '三级 3-2-1',
              key: 13,
            }]
          }]
        }]
      }
    }
  }
</script>